using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace ConsoleApplication2.Models.Mapping
{
    public class hr_employee_qualification_Map : EntityTypeConfiguration<hr_employee_qualification_>
    {
        public hr_employee_qualification_Map()
        {
            // Primary Key
            this.HasKey(t => t.id);

            // Properties
            this.Property(t => t.Qualification)
                .HasMaxLength(50);

            this.Property(t => t.Organization)
                .HasMaxLength(50);

            // Table & Column Mappings
            this.ToTable("hr_employee_qualification ");
            this.Property(t => t.id).HasColumnName("id");
            this.Property(t => t.Employee_id).HasColumnName("Employee_id");
            this.Property(t => t.Qualification).HasColumnName("Qualification");
            this.Property(t => t.Date_earned).HasColumnName("Date_earned");
            this.Property(t => t.Organization).HasColumnName("Organization");
            this.Property(t => t.ID2).HasColumnName("ID2");
        }
    }
}
